package com.itheima.tlias.constant;

import lombok.AllArgsConstructor;

@SuppressWarnings("all")
public enum EmpJobEnum {
    JOB_CLASS_TEACHER(1, "班主任"),
    JOB_LECTURER(2, "讲师"),
    JOB_STUDENT_WORKER(3, "学工主管"),
    JOB_RESEARCH_DIRECTOR(4, "教研主管"),
    JOB_COUNSELOR(5, "咨询师");

    private final int job;
    private final String name;

    EmpJobEnum(int job, String name) {
        this.job = job;
        this.name = name;
    }
    public static String  findJobName(int job){
        for (EmpJobEnum jobEnum : EmpJobEnum.values()) {
            if (jobEnum.job == job) {
                return jobEnum.name;
            }
        }
        return "其他职位";
    }
}
